Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

612
Views
"la variable invitationId de tipo Int! se usa en una posición que espera Int_comparison_exp"

Estaba intentando seguir la consulta en la plataforma hasura y me dio el siguiente error. Tengo solución para el mismo. Por eso estoy compartiendo. variables:

 { "invaId": 791 }

Consulta:

 mutation UpdateQuery($status:String!,$invaId:Int!) { update_inva(_set: {status: $status},where:{id:$invaId}){ affected_rows } }

 Output:
 { "errors": [ { "extensions": { "path": "$.selectionSet.update_inva.args.where.id", "code": "validation-failed" }, "message": "variable invaId of type Int! is used in position expecting Int_comparison_exp" } ] }
 I faced this error after passing the variable of type Int!.
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

El problema está en consulta.

Mira la cláusula where

where:{id:$invitationId})

donde la cláusula también espera el tipo de comparación, por ejemplo. _eq .

Eso era exactamente lo que me faltaba.

Entonces, actualicé la consulta como se muestra a continuación, y las cosas funcionaban perfectamente

Consulta:

 mutation UpdateQuery($status:String!,$invaId:Int!) { update_inva(_set: {status: $status},where:{id:{_eq:$invaId}}){ affected_rows } }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!